Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaults Locale when calling validation #2908

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

bbakerman
Copy link
Member

@bbakerman bbakerman commented Aug 1, 2022

If a caller explicitly sets the Locale to null (for whatever reason) we need to be able to default it so the validation I18n code works.

See #2907

The design question is - should we default this on ExecutionInput construction OR like I have done it here.

This fixes the bug - however defaulting it in EI construction is more systemic. It would mean that DataFetcherEnvs etc... would always get a Locale say.

@bbakerman bbakerman requested a review from dondonz August 1, 2022 21:31
@bbakerman bbakerman added this to the 19.1 milestone Aug 2, 2022
@bbakerman bbakerman merged commit 49d012e into master Aug 2, 2022
estal011 added a commit to 8btc-OnePiece/graphql-java that referenced this pull request Jun 6, 2024
* 19.3: (709 commits)
  use class loader in getResource (graphql-java#3038)
  Stable port of graphql-java#2940 (graphql-java#2947)
  Stable port of Diff counts are the same (graphql-java#2946)
  Stable port of Fix printing directives when they contain something like a formatting specifier (graphql-java#2919) (graphql-java#2920) (graphql-java#2945)
  Stable port of Fix field visibility bug with enum with enum args (graphql-java#2926) (graphql-java#2944)
  Stable fix for graphql-java#2943 (graphql-java#2943)
  Added test fore intersection
  Xuorig Fix PR - Edge case with GraphQLTypeReference and Schema Transforms (graphql-java#2906)
  Fix typo in description of skip directive (graphql-java#2915)
  Add smaller set first optimisation
  Cheaper calculation for narrowing down possible objects in ENO
  Handles isDeprecated not being present in the json
  Defaults Locale when calling validation (graphql-java#2908)
  DF SelectionSet Benchmark (graphql-java#2893)
  Test stability (graphql-java#2903)
  Donna's catch! (graphql-java#2900)
  Deprecate Apollo Cache Control
  READY - Stop DOS attacks by making the lexer stop early on evil input. (graphql-java#2892)
  Bump java-dataloader ahead of release
  State is passed explicitly to instrumentation and parameters are NOT mutated (graphql-java#2769)
  ...

# Conflicts:
#	README.md
#	build.gradle
#	src/main/java/graphql/GraphQL.java
#	src/main/java/graphql/Scalars.java
#	src/main/java/graphql/execution/ValuesResolver.java
#	src/main/java/graphql/relay/SimpleListConnection.java
#	src/main/java/graphql/schema/DataFetchingEnvironmentImpl.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants